<template>
	 <view class="">
		 <view class="">
		 	<u-cell
		 	    title="绑定邮箱修改"
		 	    isLink
				@click="updatephone()"
		 	
		 	></u-cell>
			<u-cell
			    title="支付密码修改"
			    isLink
			    @click="updatepwPay()"
			></u-cell>
			<u-cell
			    title="消息提醒"
			    isLink
			    url="/pages/componentsB/tag/tag"
			></u-cell>
			<u-cell
			    title="邀请好友"
			    isLink
			    url="/pages/componentsB/tag/tag"
			></u-cell>
			<u-cell
			    title="关于"
			    isLink
			    url="/pages/componentsB/tag/tag"
			></u-cell>
			<u-cell
			    title="责任声明"
			    isLink
			    url="/pages/componentsB/tag/tag"
			></u-cell>
		 </view>
	 	 	<view class="">
	 	 			<u-button type="primary" text="退出登录" @click="tc()"></u-button>
	 	 	</view>
	 </view>
</template>

<script>
	import request from '../../request.js'
	export default {
		data() {
			return {
				userId:'',
				phone:'',
				email:'',
			
		}
	},
	 onLoad(w) {
		this.userId=w.userId
	 	this.load()
	 },
	 methods:{
		 load(){
		 	console.log(this.userId)
		 	request({
		 		url:"xkuser/user/load/"+this.userId,
		 		method:'get',
		 		success:(res)=>{
		 			this.arr=res.data.data.arr
					this.email=this.arr.email
					console.log(this.arr)
		 		}
		 	})
		 },
		 updatephone(){
			 uni.navigateTo({
			 	    url:"/pages/zc/phoneupdate?userId="+this.userId,
			 })
		 },
		 updatepwPay(){
		 			 uni.navigateTo({
		 			 	    url:"/pages/zc/updatepwPayment?userId="+this.userId,
		 			 })
		 },
		 tc(){
			 uni.removeStorageSync('userid')
			 uni.reLaunch({
			 	url:'./logon'
			 })
		 }	 }
}
	
</script>

<style>
</style>
